package com.note.factory;

import com.note.bo.R;
import com.note.sys.RemoteWorkService;
import org.springframework.cloud.openfeign.FallbackFactory;
import org.springframework.stereotype.Component;

/**
 * @author yuhuan
 * @date 2025/3/19
 */
//@Component
public class RemoteWorkFallbackFactory implements FallbackFactory<RemoteWorkService> {

    public RemoteWorkService create(Throwable cause) {
        return new RemoteWorkService() {

            public R<String> workName() {
                return R.fail("未知");
            }
        };
    }
}
